<script setup>
import {initLoginBg} from '@/utils/Background/xk.js'
import {onMounted, ref} from 'vue'
const canvas = ref(null)
onMounted(() => {
  // 确保 canvasRef.value 不是一个空值（即 canvas 元素已经挂载）
  if (canvas.value) {
    initLoginBg(canvas.value) // 传递 canvas DOM 元素给 updatedInitLoginBg 函数
  }
})
</script>

<template>
  <div>
    <canvas ref="canvas" style="width: 100%;height: 100vh"></canvas>
  </div>
</template>

<style scoped>

</style>
